 {
        
     cc.Class({
            extends: cc.Component,
            properties: {},
            onLoad: function () {
                cc.game.addPersistRootNode(this.node), this.registGameShowHideStatus(), tywx.NotificationCenter.listen(tywx.EventType.MSG_SHOW_GAME_INTERACTION, this.showGameInteraction.bind(this), this);
            },
            start: function () {
                this.resetPos();
            },
            resetPos: function () {
                this.node.width = cc.winSize.width, this.node.height = cc.winSize.height, this.node.setPosition(cc.v2(cc.winSize.width / 2, cc.winSize.height / 2));
            },
            registGameShowHideStatus: function () {
                var e = tywx.GameFeature.onShowCallback, t = tywx.GameFeature.onHideCallback;
                tywx.IsWechatPlatform() || (cc.game.on(cc.game.EVENT_HIDE, function () {
                    this.isHide || (Global._isInBackground = !0, this.isHide = !0, t && t());
                }.bind(this)), cc.game.on(cc.game.EVENT_SHOW, function () {
                    this.isHide && (Global._isInBackground = !1, this.isHide = !1, e && e());
                }.bind(this)));
            },
            onDestroy: function () {
                Global.notificationCenter.offAll(this), tywx.NotificationCenter.ignoreScope(this);
            },
            showGameInteraction: function (e) {
                tywx.IsWechatPlatform() && (e ? (Global.utils.showGameClubBtn(!0), Global.utils.showBanner(!0),
                    Global.utils.showAdCross(!0), authManager.operateAuthBtnsShow(!0)) : (Global.utils.showGameClubBtn(!1),
                    Global.utils.showBanner(!1), Global.utils.showAdCross(!1), authManager.operateAuthBtnsShow(!1)));
            }
        })
    }